﻿public class ApiResultUtils
{
    public static CommonApiResult<T> Success<T>(T data, string message = "操作成功")
    {
        return new CommonApiResult<T>
        {
            Code = 0,
            Success = true,
            Data = data,
            Message = "操作成功"
        };
    }

    public static CommonApiResult Success(string message = "操作成功")
    {
        return new CommonApiResult
        {
            Code = 0,
            Success = true,
            Data = null,
            Message = "操作成功"
        };
    }
}
